let relData = {
    relques:null,//关联题目的数据


};

let vue = new Vue({

    el:"#alice",
    data:relData,
    methods:{

    }


});





//-----------------------------------分割线---------------------------------------------
//页面加载后，即向后端发送请求，获取json格式的字符串数据


window.onload=function(){
    getAllRel();
}




//-----------------------------------分割线---------------------------------------------
//页面加载完成后要执行的函数


//从数据库获取所有的试卷数据
let getAllRel =  ()=> {
    axios.get('/ep/ques/all')
        .then(response => {
            relData.relques = response.data;

        })
        .catch(function (error) {
            console.log(error);
        });
}


//-----------------------------------分割线---------------------------------------------
//监听到【点击事件】要执行的函数（点击按钮要执行的函数）

let data = {
    radio:"",
    input:"",
    send_time:"",
    mes_type:"",
    tableData: [{
        ques_id:'WN0012',
        type:'单选题',
        content:'解析解析内容内容',
        diffcult:'难',
        point:'0012',
        score:'2',
        editor_time:'2016-02-3',
        done_num:'1330',
        rate:'65%',
        error_option:'D',

        /*date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄',*/
    }, {
        ques_id:'WN0012',
        type:'单选题',
        content:'解析解析内容内容',
        diffcult:'难',
        point:'0012',
        score:'2',
        editor_time:'2016-02-3',
        done_num:'1330',
        rate:'65%',
        error_option:'D'

    }, {
        ques_id:'WN0012',
        type:'单选题',
        content:'解析解析内容内容',
        diffcult:'难',
        point:'0012',
        score:'2',
        editor_time:'2016-02-3',
        done_num:'1330',
        rate:'65%',
        error_option:'D',

    }, {
        ques_id:'WN0012',
        type:'单选题',
        content:'解析解析内容内容',
        diffcult:'难',
        point:'0012',
        score:'2',
        editor_time:'2016-02-3',
        done_num:'1330',
        rate:'65%',
        error_option:'D'

    },
        {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D',

        }, {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D'

        }, {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D',

        }, {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D'

        },
        {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D',

        }, {
            ques_id:'WN0012',
            type:'单选题',
            content:'解析解析内容内容',
            diffcult:'难',
            point:'0012',
            score:'2',
            editor_time:'2016-02-3',
            done_num:'1330',
            rate:'65%',
            error_option:'D'

        }]

};

let main_div = new Vue({

    el:"#alice",
    data:data,
    methods:{
        show1: function(){
            console.log(data.radio+"部分学员");
        },
        show2: function(){
            console.log(data.radio+"全部学员");
        }




    }



});




